class AbsTopo {
    constructor() {
        this.id = 0;
        this.m_refGid = 0;
        this.m_useful = 1;
        this.m_newAddFlag = 0;
        this.m_modifiedFlag = 0;
        this.m_container = null;
        this.m_refGraph = null;
        this.type = "unkown";
    }

    toInfo(){}

    setModified(v) { this.m_modifiedFlag = v; }
    getModified() { return this.m_modifiedFlag; }
    setUseful(v) { this.m_useful = v; }
    getUseful() { return this.m_useful; }

    setNewAdd(v) { this.m_newAddFlag = v; }
    getNewAdd() { return this.m_newAddFlag; }

    getModifyType() {

    }

    getContainer() { return this.m_container; }
    setContainer2(v) { this.m_container = v; }
    getRefGraph() { return this.m_refGraph; }
    setRefGraph(g) { 
        this.m_refGraph = g; 
        this.m_refGid = g.m_gid;
        g.setTopoRes(this);
    }
}

export default { AbsTopo }